package com.tedu.project_jt.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.tedu.project_jt.mapper.UserMapper;
import com.tedu.project_jt.pojo.User;

@RestController
public class UserController {
	//从ioc容器中取UserMapper接口的代理类的对象
	@Autowired
	UserMapper userMapper;
	
	@RequestMapping("/selectAll")
	public List<User> selectAll(){
		return userMapper.selectByExample(null);
	}

}






